@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0e4bf1;
  --panel-color: #fff;
  --text-color: #000;
  --black-light: #707070;
  --border-color: #e6e5e5;
  --toggle-color: #ddd;
  --box1-color: #4da3ff;
  --box2-color: #ffe6ac;
  --box3-color: #ed71fc;
  --icon-color: #fff;
  --tran-05: all .5s ease;
  --tran-03: all .3s ease;
  --tran-02: all .2s ease;
}

body {
  min-height: 100vh;
  background-color: var(--primary-color);
}

body.dark {
  --primary-color: #3A3B3C;
  --panel-color: #242526;
  --text-color: #CCC;
  --black-light: #CCC;
  --border-color: #4D4C4C;
  --toggle-color: #FFF;
  --box1-color: #3A3B3C;
  --box2-color: #3A3B3C;
  --box3-color: #3A3B3C;
  --icon-color: #CCC;
}

body.dark li a:hover::before { background-color: var(--text-color) }

body.dark .switch::before { left: 20px }

nav {
  position: fixed;
  top: 0;
  left: 0;
  padding: 10px 14px;
  width: 250px;
  height: 100%;
  background-color: var(--panel-color);
  border-right: 1px solid var(--border-color);
  transition: var(--tran-05);
}

nav.close { width: 72px }

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo-img {
  display: flex;
  justify-content: center;
  min-width: 45px;
}

nav .logo-img img {
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
}

nav .menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 40px;
  height: calc(100% - 90px);
}

.menu li { list-style: none }

.menu li a {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  text-decoration: none;
}

.menu-links li a:hover::before {
  content: "";
  position: absolute;
  left: -7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.menu li a i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  min-width: 45px;
  height: 100px;
  color: var(--black-light);
}

.menu li a .link-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--black-light);
  transition: var(--tran-05);
}

nav.close li a .link-name {
  opacity: 0;
  pointer-events: none;
}

.menu-links li a:hover i,
.menu-links li a:hover.link-name {
  color: var(--primary-color);
}

.menu .logout-mode {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.menu .mode {
  display: flex;
  align-content: center;
  white-space: nowrap;
}

.menu .mode-toggle {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 45px;
  cursor: pointer;
}

.mode-toggle .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  border-radius: 25px;
  background-color: var(--toggle-color);
}

.switch::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: var(--panel-color);
  border-radius: 50%;
  transition: var(--tran-03);
}

.dashboard {
  position: relative;
  left: 250px;
  padding: 10px 14px;
  width: calc(100% - 250px);
  min-height: 100vh;
  background-color: var(--panel-color);
  transition: var(--tran-05);
}

nav.close ~ .dashboard {
  left: 73px;
  width: calc(100% - 73px);
}

.dashboard .top {
  position: fixed;
  top: 0;
  left: 250px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  width: calc(100% - 250px);
  background-color: var(--panel-color);
  transition: var(--tran-05);
  z-index: 10;
}

nav.close ~ .dashboard .top {
  left: 73px;
  width: calc(100% - 73px);
}

.dashboard .top .sidebar-toggle {
  font-size: 26px;
  color: var(--text-color);
  cursor: pointer;
}

.dashboard .top .search-box {
  position: relative;
  max-width: 600px;
  width: 100%;
  height: 45px;
  margin: 0 30px;
}

.top .search-box input {
  position: absolute;
  padding: 0 25px 0 50px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--panel-color);
  color: var(--text-color);
  font-size: 15px;
  font-weight: 400;
  outline: none;
}

.top .search-box i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 22px;
  z-index: 10;
  color: var(--icon-color);
}

.top img {
  width: 40px;
   border-radius: 50%;
}

.dashboard .content { padding-top: 50px }

.content .title {
  display: flex;
  align-items: center;
  margin: 60px 0 30px 0;
}

.content .title i {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  font-size: 24px;
  background-color: var(--primary-color);
  border-radius: 6px;
  color: var(--icon-color); 
}

.content .title .text {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-color);
  margin-left: 10px;
}

.content .boxes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;  
}

.content .boxes .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc((100% / 3) - 15px);
  padding: 15px 20px;
  border-radius: 12px;
  background-color: var(--box1-color);
  transition: var(--tran-05);
}
  
.boxes .box i {
  font-size: 35px;
  color: var(--text-color);
}

.boxes .box .text {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-color);
}

.boxes .box .number {
  font-size: 40px;
  font-weight: 500;
  color: var(--text-color);
}

.boxes .box.box2 { background-color: var(--box2-color) }

.boxes .box.box3 { background-color: var(--box3-color) }

.content .activity .acti-data { 
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.activity .acti-data { display: flex }

.acti-data .data {
  display: flex;
  flex-direction: column;
  margin: 0 15px;
}

.acti-data .data-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-color);
}

.acti-data .data .data-list {
  font-size: 18px;
  font-weight: 400;
  margin-top: 20px;
  white-space: nowrap;
  color: var(--text-color);
}

@media (max-width: 1000px) {
  nav { width: 73px }

  nav.close { width: 250px }

  nav li a .link-name {
    opacity: 0;
    pointer-events: none;
  }

  nav.close li a .link-name {
    opacity: 1;
    pointer-events: none;
  }

  nav ~ .dashboard {
    left: 74px;
    width: calc(100% - 73px);
  }

  nav.close ~ .dashboard {
    left: 250px;
    width: calc(100% - 250px);
  }

  nav ~ .dashboard .top {
    left: 74px;
    width: calc(100% - 74px);
  }

  nav.close ~ .dashboard .top {
    left: 74px;
    width: calc(100% - 74px);
  }

  .activity .acti-data { overflow-X: scroll }
}

@media (max-width: 780px) {
  .content .boxes .box {
    width: calc(100% / 2 - 15px);
    margin-top: 15px;
  }
}

@media (max-width: 560px) {
  .content .boxes .box { width: 100% }
}

@media (max-width: 400px) {
  nav {width: 0}

  nav.close {width: 74px}

  nav li a .link-name {
    opacity: 0;
    pointer-events: none;
  }

  nav ~ .dashboard {
    left: 0;
    width: 100%;
  }

  nav.close ~ .dashboard {
    left: 74px;
    width: calc(100% - 74px);
  }

  nav ~ .dashboard .top {
    left: 0;
    width: 100%;
  }

  nav.close ~ .dashboard .top {
    left: 0;
    width: 100%;
  }
}